//
//  RootVC_iPad.h
//  WRY
//
//  Created by Yang on 10/12/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BigMapVC.h"
#import "CompanyDetaiVC_iPad.h"
#import "EnterpriseListVC_iPad.h"

@class IndexViewController;
@class PopCantonVC_iPad;
@class PopVocationVC_iPad;
@class PopCategoryVC_iPad;
@class SearchVC_iPad;
@class SettingListVc;


@interface RootVC_iPad : UIViewController<UIPopoverControllerDelegate,UISearchBarDelegate
,CompanyDetaiVC_iPadDelegate,EnterlistVCDelegate> {
	IBOutlet UILabel *welcomeLabel;
	IBOutlet UIButton *iconButton;
	IBOutlet UILabel *menuShowLabel;
	IBOutlet UISearchBar *rootSearchBar;
	UIPopoverController *popController;
	IndexViewController *indexViewController;//首页
	PopCantonVC_iPad *popCantonVc;//行政区
	PopVocationVC_iPad *popVoctionVc;//行业类别
	PopCategoryVC_iPad *popCategoryVc;//监控分类
	SettingListVc *popSettingVc;//设置
	EnterpriseListVC_iPad *enterListVC;//污染源列表
	SearchVC_iPad *searchVC;//搜索
	CompanyDetaiVC_iPad *companydetailVc;//企业详情
	CompanyDetaiVC_iPad *focusListVc;//关注企业
	

	
	
}
@property(nonatomic,retain)IndexViewController *indexViewController;
@property(nonatomic,retain)PopCantonVC_iPad *popCantonVc;
@property(nonatomic,retain)PopVocationVC_iPad *popVoctionVc;
@property(nonatomic,retain)PopCategoryVC_iPad *popCategoryVc;
@property(nonatomic,retain)SettingListVc *popSettingVc;//设置
@property(nonatomic,retain)UIPopoverController *popController;
@property(nonatomic,retain)EnterpriseListVC_iPad *enterListVC;
@property(nonatomic,retain)SearchVC_iPad *searchVC;
@property(nonatomic,retain)CompanyDetaiVC_iPad *companydetailVc;
@property(nonatomic,retain)CompanyDetaiVC_iPad *focusListVc;

@property(nonatomic,retain)UILabel *welcomeLabel;
@property(nonatomic,retain)UIButton *iconButton;
@property(nonatomic,retain)UILabel *menuShowLabel;
@property(nonatomic,retain)UISearchBar *rootSearchBar;




-(void)initWindow;
-(void)loadIndexController;
-(IBAction)topButtonClick:(id)sender;
-(void)addEnterpriseVC:(NSInteger)fromType enterType:(NSString *)enterpriseType;
-(void)addcompanydeatilVC:(NSString *)companyCode companyTypeCode:(NSString *)comTypeCode
                 siteCode:(NSString *)siteCode 
			 sitetypeCode:(NSString *)sitetypeCode factoryCode:(NSString *)factoryCode;
-(IBAction)searchBtnClick:(id)sender;
-(IBAction)backPage:(id)sender;
-(IBAction)settWetPathClick:(id)sender;
@end
